package cdu.sl.service;

import cdu.sl.common.PageResult;
import cdu.sl.dto.DeptQueryPageParamDTO;
import cdu.sl.entity.Department;
import cdu.sl.entity.Employee;

import java.util.List;
import java.util.Optional;

public interface DepartmentService {

    List<Department> queryAll();

    void insert(Department dept);

    PageResult<Department> page(DeptQueryPageParamDTO deptQueryPageParamDTO);

    Department getById(Integer id);

    void update(Department dept);

    void deleteById(Integer id);

    List<Employee> getEmpsByDeptId(Integer id);
}
